//
//  NextSecondCollectionViewCell.m
//  LT
//
//  Created by dllo on 16/5/17.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "NextSecondCollectionViewCell.h"
#import "UIImageView+WebCache.h"
@implementation NextSecondCollectionViewCell

-(instancetype)initWithFrame:(CGRect)frame{

    self = [super initWithFrame:frame];
    if (self) {
        [self createSubViews];
    }
    return self;


}

-(void)createSubViews{

    self.myImage = [[UIImageView alloc]initWithFrame:self.contentView.bounds];
    self.myImage.backgroundColor = [UIColor clearColor];
    [self.contentView addSubview:self.myImage];

}

-(void)layoutSubviews
{
    [super layoutSubviews];
    self.myImage.frame = self.contentView.bounds;


}

-(void)setSubjectModel:(NextFourModel *)subjectModel{

    _subjectModel = subjectModel;
    
    [self.myImage sd_setImageWithURL:[NSURL URLWithString:_subjectModel.photo] placeholderImage:[UIImage imageNamed:@"LETU"]];
    


}



@end
